import { observable, action, computed, decorate } from 'mobx'

export default class State {
    @observable
    routerIndex = 0;

    @action
    setRouterIndex(value) {
        this.routerIndex = value
    }
    @computed
    get isHome() {
        if (this.routerIndex == 0) {
            return true
        }
        return false
    }
}
